<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'account-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'user_id'); ?>
		<?php echo $form->textField($model,'user_id',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'user_id'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'account_type_id'); ?>
		<?php echo $form->textField($model,'account_type_id'); ?>
		<?php echo $form->error($model,'account_type_id'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'period'); ?>
		<?php echo $form->textField($model,'period'); ?>
		<?php echo $form->error($model,'period'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'cash'); ?>
		<?php echo $form->textField($model,'cash',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'cash'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'famous_point'); ?>
		<?php echo $form->textField($model,'famous_point',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'famous_point'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'age_id'); ?>
		<?php echo $form->textField($model,'age_id'); ?>
		<?php echo $form->error($model,'age_id'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'country_id'); ?>
		<?php echo $form->textField($model,'country_id'); ?>
		<?php echo $form->error($model,'country_id'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'city'); ?>
		<?php echo $form->textField($model,'city',array('size'=>60,'maxlength'=>80)); ?>
		<?php echo $form->error($model,'city'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'personal_info'); ?>
		<?php echo $form->textArea($model,'personal_info',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'personal_info'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'hobbies'); ?>
		<?php echo $form->textArea($model,'hobbies',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'hobbies'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'member_since'); ?>
		<?php echo $form->textField($model,'member_since'); ?>
		<?php echo $form->error($model,'member_since'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->